﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TypeCodeAE.ascx.cs" Inherits="TypeCodeAE" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1"><b>Thêm sửa TypeCode</b></a></li>
    </ul>
    <div id="tabs-1">
        <a href='/Admin/Module/TypeCode/TypeCodeList.aspx'>
            <div style="text-align: right">
                <input type="button" class="ui-widget-content ui-corner-all textfield cursor" value="Danh sách TypeCode" />
        </a>
    </div>
    <table class="gridadd">
        <tr>
            <td>
                Tên
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" CssClass="ui-corner-all textfield"
                    Width="570px" ></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    ControlToValidate="txtName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Nội dung
            </td>
            <td>
                <asp:TextBox ID="txtValue" runat="server" TextMode="MultiLine" Height="250" Width="570" Style="background-color:White;"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    ControlToValidate="txtValue"></asp:RequiredFieldValidator>
            </td>
        </tr>
        
        <%if (!TypeCodeId.Equals(Guid.Empty))
          { %>
        <tr>
            <td>
                Người tạo
            </td>
            <td>
                <asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Ngày tạo
            </td>
            <td>
                <asp:Label ID="lblCreatedDate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Người sửa
            </td>
            <td>
                <asp:Label ID="lblUpdatedBy" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Người sửa
            </td>
            <td>
                <asp:Label ID="lblUpdatedDate" runat="server"></asp:Label>
            </td>
        </tr>
        <%} %>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnUpdate" runat="server" Width="100px" Text="Thêm" CssClass="ui-widget-content ui-corner-all textfield"
                    OnClick="btnUpdate_Click" />
            </td>
        </tr>
    </table>
</div>
</div> 